package com.acmen.easyapi.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @author acmen
 * 输出表格
 */
public class Table {
    private String id;
    private String name;
    private List<List<Cell>> rows = new ArrayList<List<Cell>>();

    public void add(List<Cell> cells) {
        rows.add(cells);
    }

    public Table() {
    }

    public Table(String id, String name) {
        super();
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<List<Cell>> getRows() {
        return rows;
    }

    public Table setRows(List<List<Cell>> rows) {
        this.rows = rows;
        return this;
    }
}
